package com.trg.designmodel.facade;

/**
 * @ClassName: Facade
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/8 9:58
 * @Version: 1.0
 * @Return:
 **/
public class Facade {
    private TV tv;
    private Dvd dvd;

    public Facade() {
        this.tv = TV.getInstance();
        this.dvd = Dvd.getInstance();
    }

    public void open(){
        tv.open();
        dvd.open();
    }

    public void close(){
        tv.close();
        dvd.close();
    }

}
